﻿using System;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020000B6 RID: 182
	public class RagdollUtilityDemo : MonoBehaviour
	{
		// Token: 0x060005B0 RID: 1456 RVA: 0x00005A39 File Offset: 0x00003C39
		public void OnGUI()
		{
			GUILayout.Label(" Press R to switch to ragdoll. \n Weigh in one of the FBBIK effectors to make kinematic changes to the ragdoll pose.\n A to blend back to animation", new GUILayoutOption[0]);
		}

		// Token: 0x060005B1 RID: 1457 RVA: 0x00005A4B File Offset: 0x00003C4B
		public void Update()
		{
			if (Input.GetKeyDown(KeyCode.R))
			{
				this.ragdollUtility.EnableRagdoll();
			}
			if (Input.GetKeyDown(KeyCode.A))
			{
				this.ragdollUtility.DisableRagdoll();
			}
		}

		// Token: 0x040004BF RID: 1215
		public RagdollUtility ragdollUtility;
	}
}
